package com.jl.commons.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;

import java.util.Date;

public class DeviceExcel extends BaseRowModel {


    public DeviceExcel(){

    }

    public DeviceExcel(String name, String description, String number, String modelName, String producer, String productionLine, Date installDate, Date bornDate) {
        this.name = name;
        this.description = description;
        this.number = number;
        this.modelName = modelName;
        this.producer = producer;
        this.productionLine = productionLine;
        this.installDate = installDate;
        this.bornDate = bornDate;
    }

    /**
     * 设备名称
     */
    @ExcelProperty(value = "设备名称" ,index = 0)
    private String name;

    /**
     * 当前设备的描述信息
     */
    @ExcelProperty(value = "描述" ,index = 1)
    private String description;

    /**
     * 设备编号
     */
    @ExcelProperty(value = "设备编号" ,index = 2)
    private String number;

    /**
     * 设备型号
     */
    @ExcelProperty(value = "设备型号" ,index = 3)
    private String modelName;

    /**
     * 制作厂商
     */
    @ExcelProperty(value = "制作厂商" ,index = 4)
    private String producer;

    /**
     * 生产线
     */
    @ExcelProperty(value = "生产线" ,index = 5)
    private String productionLine;

    /**
     * 安装年月
     */
    @ExcelProperty(value = "安装年月" ,index = 6, format = "yyyy-MM")
    private Date installDate;

    /**
     * 生产年月
     */
    @ExcelProperty(value = "生产年月" ,index = 7,format = "yyyy-MM")
    private Date bornDate;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getProducer() {
        return producer;
    }

    public void setProducer(String producer) {
        this.producer = producer;
    }

    public String getProductionLine() {
        return productionLine;
    }

    public void setProductionLine(String productionLine) {
        this.productionLine = productionLine;
    }

    public Date getInstallDate() {
        return installDate;
    }

    public void setInstallDate(Date installDate) {
        this.installDate = installDate;
    }

    public Date getBornDate() {
        return bornDate;
    }

    public void setBornDate(Date bornDate) {
        this.bornDate = bornDate;
    }
}
